package map.android.baidu.carpool.response;

import com.baidu.lbs.net.http.response.ComNetResponse;

import java.io.Serializable;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块订单创建response
 */
public class OrderCreateResponse extends ComNetResponse implements Serializable {

    private static final long serialVersionUID = 5098906863442350651L;
    private int errNo = 0;
    private String errMsg = "";
    public OrderCreate data;


    public static class OrderCreate implements Serializable {

        private static final long serialVersionUID = -2958940562526333378L;
        public OrderInfo orderInfo;
        public UserInfo userInfo = null;

        public static class UserInfo implements Serializable {
            private static final long serialVersionUID = -683281517538531347L;
            public String mobile = "";
            public String nickname = "";
            public int gender = 0;
        }


        public static class OrderInfo implements Serializable {

            private static final long serialVersionUID = 8348533037279191224L;

            public String status;
            public String statusDesc;
            public String orderId;
            public String createTime;
        }
    }

    @Override
    public boolean isBadResponse() {
        return false;
    }

    @Override
    public int getErrorNo() {
        return errNo;
    }

    @Override
    public String getErrorMsg() {
        return errMsg;
    }
}
